package com.powernode.constant;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @create: 2024/7/15
 * @author: gyhe10
 * @description: 业务响应状态码枚举类
 **/

@Getter
@AllArgsConstructor
public enum BusinessEnum {
    OPERATION_FAIL(-1, "操作失败"),
    SERVER_INNER_ERROR(999, "服务器内部错误"),
    UNAUTHORIZED(401, "未授权"),
    ACCESS_DENIED_FAIL(403, "权限不足，请联系管理员"),
    ;

    private Integer code;

    private String desc;
}
